﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NoORM.Core.DbDialect
{
    public class SqliteDialect:IDbDialect
    {
        public string BuildParameterName(string parameterName)
        {
            return "@" + parameterName;
        }

        public string CreateParameterName(string parameterName)
        {
            return "@" + parameterName;
        }

        public string DeleteFrom()
        {
            return "FROM";
        }

        public string GetPageSql(string sql, string orderby, int pageSize, int pageIndex)
        {
            throw new NotImplementedException();
        }

        public string WrapFieldName(string tableOrFieldName)
        {
            return "[" + tableOrFieldName + "]";
        }
    }
}
